﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TPLSample
{
   
    public static class Services
    {

        public static string GetResultsMethodA()
        {
            GenerateRandomDelay(); 
            return "Method A";
        }

        public static string GetResultsMethodB()
        {
            GenerateRandomDelay(); 
            return "Method B";
        }

        public static void GenerateRandomDelay()
        {
            Random r = new Random();
            System.Threading.Thread.Sleep(r.Next(2000)); 
        }
    }
}
